package com.aspose.cells.a.d;

import com.aspose.cells.Color;

public class zgf {
   public static double a(double var0) {
      return zaj.d(var0 * 96.0D);
   }

   public static String b(double var0) {
      return com.aspose.cells.a.c.zp.d(a(var0));
   }

   public static String a(Color var0) {
      return "#" + com.aspose.cells.a.c.zp.e(var0.toArgb());
   }

   public static String a(com.aspose.cells.b.a.b.a.zi var0) {
      float[] var1 = var0.e();
      return com.aspose.cells.b.a.zv.a("{0},{1},{2},{3},{4},{5}", com.aspose.cells.a.c.zp.b(var1[0]), com.aspose.cells.a.c.zp.b(var1[1]), com.aspose.cells.a.c.zp.b(var1[2]), com.aspose.cells.a.c.zp.b(var1[3]), com.aspose.cells.a.c.zp.b(var1[4]), com.aspose.cells.a.c.zp.b(var1[5]));
   }

   public static String a(com.aspose.cells.b.a.b.zo var0) {
      return com.aspose.cells.b.a.zv.a("{0},{1}", com.aspose.cells.a.c.zp.b(var0.d()), com.aspose.cells.a.c.zp.b(var0.e()));
   }

   public static String a(int var0) {
      String var1;
      switch(var0) {
      case 0:
      case 3:
         var1 = "Miter";
         break;
      case 1:
         var1 = "Bevel";
         break;
      case 2:
         var1 = "Round";
         break;
      default:
         var1 = "Bevel";
      }

      return var1;
   }

   public static String b(int var0) {
      String var1;
      switch(var0) {
      case 0:
      case 16:
      case 19:
      case 20:
      case 240:
      case 255:
         var1 = "Flat";
         break;
      case 1:
      case 17:
         var1 = "Square";
         break;
      case 2:
      case 18:
         var1 = "Round";
         break;
      case 3:
         var1 = "Triangle";
         break;
      default:
         var1 = "Square";
      }

      return var1;
   }

   public static String c(int var0) {
      String var1;
      switch(var0) {
      case 0:
         var1 = "Flat";
         break;
      case 1:
      default:
         var1 = "Square";
         break;
      case 2:
         var1 = "Round";
         break;
      case 3:
         var1 = "Triangle";
      }

      return var1;
   }

   public static String a(float[] var0) {
      StringBuilder var1 = new StringBuilder();

      for(int var2 = 0; var2 < var0.length; ++var2) {
         var1.append(com.aspose.cells.a.c.zp.b(var0[var2]));
         if (var2 < var0.length - 1) {
            var1.append(" ");
         }
      }

      return com.aspose.cells.b.a.zr.a(var1);
   }

   public static String d(int var0) {
      String var1;
      switch(var0) {
      case 0:
         var1 = "Tile";
         break;
      case 1:
         var1 = "FlipX";
         break;
      case 2:
         var1 = "FlipY";
         break;
      case 3:
         var1 = "FlipXY";
         break;
      case 4:
         var1 = "None";
         break;
      default:
         var1 = "None";
      }

      return var1;
   }

   public static float[] a(zs var0) throws Exception {
      boolean var1 = var0.c == 2 || var0.c == 1 || var0.d == 2 || var0.d == 1;
      boolean var2 = var0.e == 2;
      float[] var3 = zeb.a(var0, var1 || var2);

      for(int var4 = 0; var4 < var3.length; ++var4) {
         if (var3[var4] == 0.0F) {
            var3[var4] = 0.01F;
         }
      }

      return var3;
   }
}
